var Button = function(l){
	
	var comp = $('<div/>');  
	var btn;
	var lbl;
	this.onClick = null;
	
	create = function(){
		btn = $('<div/>');
		btn.css("width","100px");
		btn.css("height","25px");
		
		lbl = $('<label/>');
		btn.append(lbl);
		lbl.text(l);
		comp.addClass('button');
		var v = $('<div/>');
		v.append(btn);
		comp.append(v);
	};
	
	this.width = function(w){
		inp.css("width",w);
	};
	
	this.height = function(h){
		inp.css("height",h);
	};

	this.bind = function(e){
		btn.click(this.onClick);
		$(e).append(comp);
	};
	
	this.label = function(v){
		if( v ){
			lbl.text(v);
		}else{
			return lbl.text();
		}
	};
	
	create();
};